package com.yunchang.springboot.mapper.mws.finances;

import com.yunchang.springboot.config.BaseDao;
import com.yunchang.springboot.models.DO.mws.finances.MwsFinancesEventGroup;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MwsFinancesEventGroupMapper extends BaseDao<MwsFinancesEventGroup> {
    /**
     * 更新或新增数据
     * */
    int replaceDataList(@Param("mwsFinancesEventGroupList") List<MwsFinancesEventGroup> mwsFinancesEventGroupList);

    /**
     * 根据是否生成财务数据的状态获取对应的数据
     * @param financeStatus
     * @param processingStatus
     * @param fundTransferStatus
     * @return
     */
    List<com.yunchang.springboot.models.mwsfinance.MwsFinancesEventGroup> selectByFinanceStatus(@Param("financeStatus") Integer financeStatus, @Param("processingStatus") String processingStatus, @Param("fundTransferStatus") String fundTransferStatus);

    /**
     * 根据对象集合更新是否生成财务数据状态
     * @param MwsFinancesEventGroupList
     * @return
     */
    int updateMwsFinancesEventGroupList(@Param("MwsFinancesEventGroupList") List<com.yunchang.springboot.models.mwsfinance.MwsFinancesEventGroup> MwsFinancesEventGroupList);
}